<template>
  <div class="book-add">
    <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
      <el-form-item label="索书号">
        <el-input v-model="formLabelAlign.name">
          <i slot="prefix" class="el-input__icon el-icon-notebook-1"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="书名">
        <el-input v-model="formLabelAlign.phone">
          <i slot="prefix" class="el-input__icon el-icon-s-management"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="作者">
        <el-input v-model="formLabelAlign.email">
          <i slot="prefix" class="el-input__icon el-icon-user"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="出版商">
        <el-input v-model="formLabelAlign.email">
          <i slot="prefix" class="el-input__icon el-icon-office-building"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="ISBN">
        <el-input v-model="formLabelAlign.email">
          <i slot="prefix" class="el-input__icon el-icon-collection"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="定价">
        <el-input v-model="formLabelAlign.email">
          <i slot="prefix" class="el-input__icon el-icon-shopping-cart-2"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="内容简介">
        <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4}" v-model="textarea2">
          <i slot="prefix" class="el-input__icon el-icon-reading"></i>
        </el-input>
      </el-form-item>
    </el-form>
    <el-button type="primary" round>添加</el-button>
  </div>
</template>

<script>
export default {
  name: "Book-add",
  data() {
    return {
      labelPosition: 'right',
      formLabelAlign: {
        name: '1',
        phone: '2',
        email: '3',
        password:'4'
      },
      radio: '1',
    };
  }

}
</script>

<style scoped>
.book-add{
  position: relative;
  margin: 10% 30% auto 10%;

}
</style>
